{include file="common/head"}

<head>
  <title>管理后台登录</title>

  <style type="text/css">
    html {
      height: 100%;
    }

    label {
      color: #00f;
    }

    #bottom {
      text-align: center;
    }
  </style>
</head>

<body style="background-imagex:url('/upload/bg.jpg');background-repeat:no-repeat;background-size:100% 100%;">
  <!-- linear-gradient(#fff, #f60) ">  -->
  <div class="row" style="height:100%;width:100%;">
    <div class="col container"
      style="height:92%;display: flex;flex-direction:column;justify-content:space-evenly;align-items: stretch; ">

      <div class="card" style="padding: 20px;margin: 0 auto;width:380px;">
        <div class=" text-center fs-2 text-primary">
          <div class="">会员登录</div>
        </div>

        <form method="post" action="" class="d-grid">
          <div class="mb-3 mt-3">
            <label for="account" class="form-label">会员账号:</label>
            <input type="text" class="form-control" id="account" placeholder="" name="account">
          </div>
          <div class="mb-3">
            <label for="pwd" class="form-label">会员密码:</label>
            <input type="password" class="form-control" id="pwd" placeholder=" " name="pwd">
          </div>

          <div class="mb-3" style="position: relative;">
            <label class="form-check-label">验证码:</label>
            <div class="input-group">
              <input class="form-control" type="text" id="verify" name="verify" />
              <img src="/index.php/login/verify" id="validate" onclick="verifyReload();"
                style="margin-left: -4px;border-radius: 4px;border: 1px solid #ccc;" />
            </div>
          </div>

          <div class="text-center">
            <button type="submit" class="btn btn-primary btn-block form-control" >登录
              Login</button>

              <div style="height:4px;"></div>
              <a href="/user/register">注册</a>
          </div>

        </form>
      </div>


    </div>
    <div class="text-center">
<!--       <div class="text-default ">CopyRight by <c style="font-weight:bold;color:rgb(62, 62, 121);">{$sys.copy_right}
        </c>
      </div> -->
                <div class="">{$sys.company_name}{$sys.sys_name}</div>
      <a href="https://beian.miit.gov.cn/">{$sys.beian}</a>
    </div>

  </div>


  <script type="text/javascript">
    $(document).ready(function () {
      verifyReload();
    })
    function register(){

      window.location.href='/user/register';

    }

    function verifyReload() {
      validate = document.getElementById('validate');
      validate.src = "";
      validate.src = "/login/verify/temp/" + new Date().getTime().toString(36);
    }

    setInterval(verifyReload,30000)

  </script>


</body>

</html>